Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
An automatic CommonJS Zepto wrapper
Current zepto version: 1.1.6
See zeptojs.com for an extended introduction and documentation.
Zepto.js and npm-zepto are licensed under the terms of the MIT License.
$ npm install npm-zepto
Then you can include it using CommonJS as you pleased.
var zepto = require('npm-zepto');
We have desided compiling npm-zepto as a CommonJS type library instead a UMD. Nonetheless if you need a AMD library you can clone the repo an run the amd_build script in order to buil a RequiredJS compatible Zepto library.
Maybe you need a local or custom build of zepto, right? Ok, just clone this repo and build your npm-zepto yourself.
On your favorite git interface make the following:
$ git clone git@github.com:Nytramr/npm-zepto.git
$ cd npm-zepto
$ git submodule update --init
Now you have in your computer a copy of npm-zepto.
$ npm install
$ npm link
Depending on your npm configuration, it is possible that you must run
npm link
with sudo
In order to build a specific version of zepto you have to change the zepto submodule commit. For instance, this command secuence compiles npm-zepto with zepto@1.1.3
$ cd npm-zepto/zepto
$ git checkout v1.1.3
$ cd ..
$ npm install
In order to build a custom version of zepto like it is explained here you must edit the script/build
bash file. An explample bellow.
#!/usr/bin/env sh
cd zepto
npm install
MODULES="zepto event ajax form ie detect fx fx_methods assets data" npm run-script dist
cd ..
if [ -f index.js ]; then
rm index.js;
fi
cat zepto/dist/zepto.js _index.js > index.js
FAQs
An automatic CommonJS Zepto wrapper
The npm package npm-zepto receives a total of 33 weekly downloads. As such, npm-zepto popularity was classified as not popular.
We found that npm-zepto demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.